﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace Himp.Outpatient
{
    /// <summary>
    /// 门诊排班时段
    /// </summary>
    public class OtpSchdPeriod : Entity<Guid>, IMultiTenant
    {
        /// <summary>
        /// 
        /// </summary>
        public OtpSchdPlan OtpSchdPlan { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid OtpSchdPlanId { get; set; }

        /// <summary>
        /// 星期
        /// </summary>
        public EnumWeek Week { get; set; }

        /// <summary>
        /// 门诊时段
        /// </summary>
        public EnumOtpPeriod OtpPeriod { get; set; }

        /// <summary>
        /// 上午时段号源数
        /// </summary>
        public int AmPeriodCnt { get; set; }

        /// <summary>
        /// 下午时段号源数
        /// </summary>
        public int PmPeriodCnt { get; set; }

        /// <summary>
        /// 晚间时段号源数
        /// </summary>
        public int EvPeriodCnt { get; set; }

        /// <summary>
        /// 门诊诊间Id
        /// </summary>
        public Guid? OtpConsultRmId { get; set; }

        /// <summary>
        /// 分时标识
        /// </summary>
        public bool TimedivnFlag { get; set; }

        /// <summary>
        /// 上午开始时间
        /// </summary>
        public DateTime? AmBegntime { get; set; }

        /// <summary>
        /// 上午结束时间
        /// </summary>
        public DateTime? AmEndtime { get; set; }

        /// <summary>
        /// 下午开始时间
        /// </summary>
        public DateTime? PmBegntime { get; set; }

        /// <summary>
        /// 下午结束时间
        /// </summary>
        public DateTime? PmEndtime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }
    }
}
